$(function(){
	var base_url = "http://localhost/zonge-eva/index.php/";
	//var base_url = "http://localhost/zonge/index.php/";
	var url = location.toString();
	var nav_url = url;
	
	$("#nav a[href='"+ nav_url +"']").addClass("selected");

	var a_list = $("#service-nav a");
	$.each( a_list, function(i, n) {
		var href = $(this).attr("href");
		if( url.indexOf( href ) != -1 ) {
			$(this).addClass("selected");
			return;
		}
	});
	
});